home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap12 / dun12_3.txt < prev    next >
Encoding:
Text File  |  1997-12-18  |  716 b   |  38 lines

  1. <HTML>
  2.  
  3. <HEAD>
  4.  
  5. <TITLE>drop shadows with positioning</TITLE>
  6.  
  7. </HEAD>
  8.  
  9. <STYLE TYPE="text/css">
  10.  
  11. .myClass{
  12.  
  13.     POSITION: absolute;
  14.  
  15.     COLOR: red;
  16.  
  17.     FONT-SIZE: 40pt;
  18.  
  19.     FONT-FAMILY: sans-serif;
  20.  
  21.     Z-INDEX:2;
  22.  
  23.     }
  24.  
  25. .container{
  26.  
  27.     POSITION: absolute;
  28.  
  29.     TOP: 100px;
  30.  
  31.     LEFT: 100px;
  32.  
  33.     }
  34.  
  35. #shadow{
  36.  
  37.     COLOR: #aaaaaa;
  38.  
  39.     TOP: -3px;
  40.  
  41.     LEFT: -3px;
  42.  
  43.     Z-INDEX:1;
  44.  
  45.     }
  46.  
  47. </STYLE>
  48.  
  49. <BODY BGCOLOR="#ffffff">
  50.  
  51. Some standard text before the element
  52.  
  53. <DIV CLASS="container">
  54.  
  55.     <SPAN CLASS="myClass">
  56.  
  57.     hello you
  58.  
  59.     </SPAN>
  60.  
  61.     <SPAN ID="shadow" CLASS="myClass">
  62.  
  63.     hello you
  64.  
  65.     </SPAN>
  66.  
  67. </DIV>
  68.  
  69. Some standard text after the element
  70.  
  71. </BODY>
  72.  
  73. </HTML>
  74.  
  75.